翻訳と辞書
Words near each other
・ Kaleidescape
・ Kaleidica
・ Kaleidics
・ Kaleido Star
・ Kaleidoscalp
・ KaleidoScoops
・ Kaleidoscope
・ Kaleidoscope (1966 film)
・ Kaleidoscope (1990 film)
・ Kaleidoscope (disambiguation)
・ Kaleidoscope (Kaya song)
・ Kaleidoscope (Kelis album)
・ Kaleidoscope (Nancy Wilson album)
・ Kaleidoscope (newspaper)
・ Kaleidoscope (novel)
Kaleidoscope (programming language)
・ Kaleidoscope (Rachael Lampa album)
・ Kaleidoscope (retailer)
・ Kaleidoscope (Roland Grapow album)
・ Kaleidoscope (short story collection)
・ Kaleidoscope (Siouxsie and the Banshees album)
・ Kaleidoscope (software)
・ Kaleidoscope (Sonny Stitt album)
・ Kaleidoscope (Tiësto album)
・ Kaleidoscope (Transatlantic album)
・ Kaleidoscope (TV series)
・ Kaleidoscope (U.S. band)
・ Kaleidoscope (UK band)
・ Kaleidoscope (UK radio series)
・ Kaleidoscope at the Hub


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Kaleidoscope (programming language) : ウィキペディア英語版
Kaleidoscope (programming language)
The Kaleidoscope programming language is a constraint programming language embedding constraints into an imperative object-oriented language. It adds keywords ''always'', ''once'', and ''assert''..''during'' (formerly ''while''..''assert'') to make statements about relational invariants. Objects have constraint constructors, which are not methods, to enforce the meanings of user-defined datatypes.
There are three versions of Kaleidoscope which show an evolution from declarative to an increasingly imperative style. Differences between them are as follows.〔http://www.cs.washington.edu/research/constraints/cip/kaleidoscope-asi.pdf〕
==Example==

Compare the two code segments, both of which allow a user to drag the level of mercury in a simple graphical thermometer with the mouse.
Without constraints:
while mouse.button = down do
old <- mercury.top;
mercury.top <- mouse.location.y;
temperature <- mercury.height / scale;
if old < mercury.top then
delta_grey( old, mercury.top );
display_number( temperature );
elseif old > mercury.top then
delta_white( mercury.top, old );
display_number( temperature );
end if;
end while;
With constraints:
always: temperature = mercury.height / scale;
always: white rectangle( thermometer );
always: grey rectangle( mercury );
always: display number( temperature );
while mouse.button = down do
mercury.top = mouse.location.y;
end while;

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Kaleidoscope (programming language)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.